﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Data.SqlClient;

namespace Repository
{
    public interface IQuery<Element>
    {
        Boolean save(Element e);

        Boolean update(Element e);

        List<Element> getAllList();

        List<Element> getListById(int id);

        Boolean delete(Element e);

        void openConnection();

        void closeConnection();

        void putConnection(SqlConnection connection);
    }
}
